<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
   
    <%
        //绝对路径
        pageContext.setAttribute("APP_PATH",request.getContextPath());
     %>
	<link rel="stylesheet" href="${APP_PATH }/layui/css/layui.css"  media="all">
    <script type="text/javascript" src="${APP_PATH }/jQuery/jquery-1.10.1.js"></script>
	<script type="text/javascript" src="${APP_PATH }/layui/js/from.js"></script>
	<script type="text/javascript" src="${APP_PATH }/layui/layui.js" charset="utf-8"></script>
    <title>My JSP 'BBS_mesage.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <link rel="stylesheet" href="jq22jQueryLogin/jQueryLogin/layui/css/layui.css"  media="all">
  
  <body>
  <div style="position: absolute;left: 550px;top: 200px">
  	<h1 align="center" style="height: 67px;font-size: 25px ">修改个人信息</h1>
  
  	<form class="layui-form" action="mesage" method="post">
  	<s:if test="id != null">	
  		<s:hidden name="id"></s:hidden>
  	</s:if>
  	<div class="layui-inline">
      <label class="layui-form-label">email</label>
      <div class="layui-input-inline">
        <input type="tel" name="email" lay-verify="required|phone" autocomplete="off" class="layui-input" value="${email }">
      </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">性别</label>
    <div class="layui-input-block">
    <s:if test="#request.userData.sex == 0">
      <input checked="checked" type="radio" name="sex" value="0" title="男"  >
      <input type="radio" name="sex" value="1" title="女"  >
    </s:if>
    <s:else>
    	<input type="radio" name="sex" value="0" title="男"  >
      <input checked="checked" type="radio" name="sex" value="1" title="女">
    </s:else>
    </div>
  </div>
  
  <div class="layui-inline">
      <label class="layui-form-label">出生日期</label>
      <div class="layui-input-inline">
        <input type="tel"  name="bornDate"  class="layui-input" value="${bornDate }">
      </div>
    </div>

	<div class="layui-upload">
		<div class="layui-upload-list">
			<img class="layui-upload-img" src="image/${avatar }" style="width: 85px;height: 90px">
			<button type="button" class="layui-btn">上传图片</button>
			<button class="layui-btn">立即提交</button>
		</div>
		
	</div>
	</form>
	<a href="${APP_PATH }/BBS_game.jsp"><button class="layui-btn layui-btn-fluid" style="width: 300px">首页</button></a>
	</div>
  </body>
  
</html>
